/*此js用于对壁纸的更换*/
$(function () {
    if (localStorage.getItem("token") === null)
        return false;
    /*背景图*/
    let background_image_url = localStorage.getItem("background_image_url");
    if (background_image_url === null)
        return false;
    else
        $("body").css("background-image", "url('" + background_image_url + "')");
    /*透明度*/
    let opacity = localStorage.getItem("opacity");
    let regex1 = /^0\.\d+$/i;
    if (opacity !== null && regex1.test(opacity))
        $(".my_opacity").css("opacity", opacity);
    else
        $(".my_opacity").css("opacity", 1);
})